
<jsp:include page="menu.jsp" ></jsp:include>
		
 <div id="page-wrapper">
	 <div class="ibody">			 
			<div class="jumbotron">
					<h1>Registro de residente</h1>
			</div>
			
			<div class="formGeneral">
			<form method="post" name ="fResidenteNew" id ="fResidenteNew" action="ResidenteModificaServlet" class="form-horizontal">
<%@page import="upc.condominio.modelo.Residente"%>
<%
Residente vo = (Residente)request.getAttribute("residente");
%>
	
			<div class="form-group">
			<label for="lbidresidente" class="col-sm-2 control-label">Id Residente:</label>
			<div class="col-sm-2">
				<input type="text" class="form-control" id="txidresidente" name="txidresidente" value="<%= vo.getIdResidente() %>" readonly>
			</div>
		</div>
		<div class="form-group">
			<label for="lbappaterno" class="col-sm-2 control-label">Ap. Paterno:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txappaterno" name="txappaterno" value="<%= vo.getApePaterno() %>" maxlength="45" required>
			</div>
		</div>
		<div class="form-group">
			<label for="lbapmaterno" class="col-sm-2 control-label">Ap. Materno:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txapmaterno" name="txapmaterno" value="<%= vo.getApeMaterno() %>" maxlength="45" required>
			</div>
		</div>
		<div class="form-group">
			<label for="lbnombres" class="col-sm-2 control-label">Nombres:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txnombres" name="txnombres" value="<%= vo.getNombres() %>" maxlength="45" required>
			</div>
		</div>
		<div class="form-group">
			<label for="lbdocumento" class="col-sm-2 control-label"># Documento:</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txdocumento" name="txdocumento" onKeyPress="return soloNumeros(event)" value="<%= vo.getDni() %>" maxlength="8" required >
			</div>
		</div>
		<div class="form-group">
			<label for="lbfecnac" class="col-sm-2 control-label">Fecha nacimiento:</label>
			<div class="col-sm-2">
				<input type="date" class="form-control" id="txfecnac" name="txfecnac" value ="<%= vo.getFechaNac() %>">
			</div>
		</div>
		<div class="form-group">
			<label for="lbemail" class="col-sm-2 control-label">E-mail:</label>
			<div class="col-sm-3">
				<input type="email" class="form-control" id="txemail" name="txemail" value="<%= vo.getEmail() %>" maxlength="50" required >
			</div>
		</div>
		<div class="form-group">
			<label for="lbemail" class="col-sm-2 control-label">Clave de acceso:</label>
			<div class="col-sm-3">
				<input type="password" class="form-control" id="txclave" name="txclave" value="<%= vo.getClave() %>" maxlength="45" required >
			</div>
		</div>
		<div class="form-group">
			<label for="lbestado" class="col-sm-2 control-label">Estado</label>
			<div class="col-sm-3">
				<input type="text" class="form-control" id="txestado" name="txestado" readonly value="<%= vo.getEsEstado().getDescripcion() %>">
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button class="btn btn-primary" type="submit">Aceptar</button>
				<a class="btn btn-default" href="ResidenteLista.jsp" role="button">Cancelar</a>
			</div>
		</div>

				</form>
	  		</div>	
		</div>			
	</div>			
 
<script type="text/javascript">

</script>
	
</body>
</html>    